package com.example.howard.xiao7music;

import android.app.Application;

import com.example.howard.xiao7music.service.MusicPlayerService;
import com.example.howard.xiao7music.ui.BottomPlayer;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Howard on 2016/9/25.
 */
public class MyApplication extends Application{
    public MusicPlayerService musicPlayerService=new MusicPlayerService();
    //当前的播放歌曲列表
    public List<Map<String, Object>> songdatalist=new ArrayList<>();
//    public BottomPlayer bottomPlayer;
    //当前的播放歌曲信息
    public Map<String, Object> map=new HashMap<>();
    //当前的播放歌曲位置
    public int position;



    public void setMusicPlayerService (MusicPlayerService Service){
        this.musicPlayerService=Service;
    }

    public MusicPlayerService getMusicPlayerService (){
        return musicPlayerService;
    }

    public List<Map<String, Object>> getSongdatalist() {
        return songdatalist;
    }

    public void setSongdatalist(List<Map<String, Object>> songdatalist) {
        this.songdatalist = songdatalist;
    }

//    public BottomPlayer getBottomPlayer() {
//        return bottomPlayer;
//    }
//
//    public void setBottomPlayer(BottomPlayer bottomPlayer) {
//        this.bottomPlayer = bottomPlayer;
//    }


    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }
}
